import * as articles_type from './action-type';

let articles_data = {
    detail:{
        adTitle: '',
        adkeyWord: [],
        adContent: '',
    },
    recom:[],
    other:[]
}

const proArticles = (state = articles_data, action = {}) => {

    switch (action.type) {
        case articles_type.SETARTICLES_TYPE:
            return { ...state, ...action };
        default:
            return state;
    }
}

export default proArticles;